package com.huawei.appmarket.service.usercenter.personal.view.card;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant.KeyAndValue;
import o.cgz;
import o.ckt;
import o.der.e;
import o.der.f;
import o.efi;
import o.eko;
import o.els;
import o.MinimumFactory;

public class PersonalOrderCard extends PersonalNormalCard implements OnClickListener {
    public PersonalOrderCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        super.ˏ(view);
        this.ʿ.setText(f.ˊꜞ);
        ˏ(this.ˎ, e.ॱᐝ);
        view.setOnClickListener(new ckt(this));
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        int ˊ = efi.ˎ().ˊ();
        if (ˊ > 0) {
            this.ˋ.setText(MinimumFactory.double2String((double) ˊ));
            this.ˋ.setVisibility(0);
            return;
        }
        this.ˋ.setVisibility(8);
    }

    public void onClick(View view) {
        ˊ();
        ˋ();
    }

    protected void ˋ() {
        eko.ˋ(f.ꓸ, KeyAndValue.NUMBER_01);
    }

    protected void ˊ() {
        new els(this.ˊ).ˊ();
    }
}
